package com.fatdetection.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fatdetection.demo.bean.Project;

import java.util.List;

public interface ProjectService {
    List<Project> searchProjsByAdminName(String name, String info);

    public int insertProject(Project project);

    public int delProject(Integer id);

    public int updateProject(Project project);

    public List<Project> findAll();

    public Project findById(Integer id);

    public List<Project> findProjByAdmin(String name);//查询某个管理员下的所有项目

    public Project findProjByName(String projectName);//根据项目名查询

    Page<Project> selectAllPage(Integer current, Integer size, String searchKey, String searchVal);

    public List<Project> findMeasProj(Integer stateMeas);//查询可测量的项目

    public  List<Project> findDataProj(Integer stateData);//查询可录入数据的项目
}
